package com.key.service;

import com.key.common.R;
import com.key.entity.AssetsAllocation;

/**
 * @Author: li
 * @CreateTime: 2023-02-22  14:28
 */
public interface AssetsAllocationService {

    /**
     * 显示资产调拨单信息，包括高级搜索
     * @return
     */
    R showAllAssetsAllocationInfo(AssetsAllocation assetsAllocation);

    /**
     * 确认调入，修改相关信息
     */
    R allocationConfirm(Integer[] allocationIds,String inDate);


    /**
     * 取消调入，修改相关信息
     * @param allocationIds
     * @return
     */
    R allocationCancel(Integer[] allocationIds);

    /**
     * 根据调拨单id单个查询调拨单信息
     * @param allocationId
     * @return
     */
    R showAssetsAllocationInfo( Integer allocationId);


    /**
     * 根据调拨单号查询所对应资产信息
     * @param allocationNum
     * @return
     */
    R showAssetsByAllocationNum(String allocationNum);


    /**
     * 修改单个资产调拨单信息
     * @param allocationId
     * @param inPerson
     * @param inCompany
     * @param description
     * @return
     */
    R updateAllocationInfo(Integer allocationId,String inPerson,String inCompany,String description);


    /**
     * 根据id删除调拨信息单，可多个
     * @param allocationIds
     * @return
     */
    R deleteAllocationInfoById(Integer[] allocationIds);
}
